﻿using fuzhu;
using SqlSugar;
using U8COWeb;
using XXX.Bo;
using XXX.Common;
using XXX.Models;
using XXX.Models.AS;
using ZDEntity;

namespace XXX.Bo.WMS
{
    /// <summary>
    ///读取wmspara
    /// </summary>
    public class WMSParaVM
    {
        //当前的数据库连接字符串
        public string conStr { get; set; }
        public string xmlConfig { get; set; }
        public static string cDatabase = "";

        public WMSPara entity { get; set; }

        public WMSParaVM()
        {
            //conStr
            conStr = CanShu.conStr;
            //初始化定义xmlconfig
            xmlConfig = XmlOperation.GetConfigXML();
        }



        /// <summary>
        /// 读取wms参数信息
        /// </summary> 
        /// <returns></returns>
        public RetModel2 GetList()
        {
            try
            {
                WMSPara2 wMSPara = CanShu.wmspara;
                return DBService.ReOKObject(wMSPara);
            }
            catch (Exception ex)
            {
                return DBService.ReErrObject(ex.Message);
            }

        }
    }
}
